package tools.utils {
	/**
	 * @author ase7en
	 */
	public class TraceUtil {
		public static function toObj(obj:*):void
		{
			if (obj is Array)
			{
				toArr(obj);
			} else if (obj is Object)
			{
				trace("---object---")
				for (var j : * in obj)
				{
					trace(" "+j+":  "+obj[j]);
				}
				trace("-----------")
			}
		}
		
		private static function toArr(arr:Array):void
		{
			trace("---array---")
			var n:int = arr.length;
			for (var i:int = 0; i < n; i++ )
			{
				trace(i + ":  " + arr[i]);
			}
			trace("-----------")
		}
		
		public static function to(value:*):void
		{
			trace(value);
		}
	}
}
